package com.ruoyi.msg.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天消息对象 chat_msg
 * 
 * @author zzzyh
 * @date 2025-10-12
 */
public class ChatMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    @Excel(name = "发送用户")
    private String userName;

    /** 聊天信息id */
    @Excel(name = "聊天信息id")
    private Long chatId;

    /** 房间号id */
    @Excel(name = "房间号id")
    private Long roomId;

    /** 发送人id */
    @Excel(name = "发送人id")
    private Long senderId;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String type;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 是否撤回 */
    @Excel(name = "是否撤回")
    private Integer isRecalled;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** ip归属地 */
    @Excel(name = "ip归属地")
    private String location;

    /** 消息是文件时，存的文件名 */
    @Excel(name = "消息是文件时，存的文件名")
    private String fileName;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 语音时长 */
    @Excel(name = "语音时长")
    private Long duration;

    /** 回复消息id */
    @Excel(name = "回复消息id")
    private Long replyId;

    /** 回复消息内容 */
    @Excel(name = "回复消息内容")
    private String replyContent;

    /** 回复用户id */
    @Excel(name = "回复用户id")
    private Long replyUserId;

    /** 发送给用户 */
    @Excel(name = "发送给用户")
    private Long toUserId;

    private String roomName;



    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }


    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setChatId(Long chatId) 
    {
        this.chatId = chatId;
    }

    public Long getChatId() 
    {
        return chatId;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setIsRecalled(Integer isRecalled) 
    {
        this.isRecalled = isRecalled;
    }

    public Integer getIsRecalled() 
    {
        return isRecalled;
    }

    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }

    public void setReplyContent(String replyContent) 
    {
        this.replyContent = replyContent;
    }

    public String getReplyContent() 
    {
        return replyContent;
    }

    public void setReplyUserId(Long replyUserId) 
    {
        this.replyUserId = replyUserId;
    }

    public Long getReplyUserId() 
    {
        return replyUserId;
    }

    public void setToUserId(Long toUserId) 
    {
        this.toUserId = toUserId;
    }

    public Long getToUserId() 
    {
        return toUserId;
    }

    @Override
    public String toString() {
        return "ChatMsg{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", chatId=" + chatId +
                ", roomId=" + roomId +
                ", senderId=" + senderId +
                ", type='" + type + '\'' +
                ", content='" + content + '\'' +
                ", isRecalled=" + isRecalled +
                ", ip='" + ip + '\'' +
                ", location='" + location + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                ", duration=" + duration +
                ", replyId=" + replyId +
                ", replyContent='" + replyContent + '\'' +
                ", replyUserId=" + replyUserId +
                ", toUserId=" + toUserId +
                ", roomName='" + roomName + '\'' +
                '}';
    }
}
